import { 
  OPEN_MESSAGE_DIALOG,
  CLOSE_MESSAGE_DIALOG,
} from '../constants';

/**
 * 私信会话框
 * 打开会话框
 */
export function openMessageDialog(object) {
  return {
    type: OPEN_MESSAGE_DIALOG,
    payload: object
  }
}

/**
 * 关闭会话框
 */
export function closeMessageDialog() {
  return {
    type: CLOSE_MESSAGE_DIALOG
  }
}